#include <sgu-0/sgu.h>

#include "frame.h"
#include "test.h"

Frame::Frame()
{
	_fail = false;
}

Frame::~Frame()
{
	ITERATE(std::vector<Test*>,it,_test)
		delete *it;
}

void Frame::add(Test * test)
{
	_test.push_back(test);
}

void Frame::check() 
{
	ITERATE(std::vector<Test*>,it,_test)
	{
		(*it)->check();
		_fail |= (*it)->isFail();
	}
}

void Frame::users()
{
	ITERATE(std::vector<Test*>,it,_test)
		(*it)->users();
}

void Frame::bench() 
{
	ITERATE(std::vector<Test*>,it,_test)
		(*it)->bench();
}

